package com.gitee.foodon.sbfind.archetype.presentation.swagger;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

/**
 * Swag @author yangfudong
 *
 * @date 2017/7/11 18:54
 */
@RestController
@Api(value = "订单管理API", description = "")
public class OrderResourceController {

    @RequestMapping(value = "/api/orders", method = RequestMethod.POST)
    @ApiOperation(value = "创建订单", notes = "")
    public CreateOrderResult createOrder(@RequestBody CreateOrderCommand command) {
        return new CreateOrderResult();
    }

    @RequestMapping(value = "/api/orders/{orderId}", method = RequestMethod.GET)
    @ApiOperation(value = "获取订单", notes = "")
    public RetrieveOrderResult RetrieveOrder(@PathVariable("orderId") String orderId) {
        return new RetrieveOrderResult();
    }

}